﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dukous.Domain;

namespace Dukous.Security.Domain
{
    /// <summary>
    /// 权限
    /// </summary>
    [Serializable]
    public class Permission : Entity<long>
    {
        /// <summary>
        /// 获取 / 设置 名称
        /// </summary>
        public virtual string Name { get; set; }

        /// <summary>
        /// 获取 / 设置 描述
        /// </summary>
        public virtual string Description { get; set; }

        /// <summary>
        /// 获取 / 设置 安全对象
        /// <remarks>
        /// 与安全对象中的 Permissions 属性没有必然的关系
        /// </remarks>
        /// </summary>
        public virtual SecurityObject SecurityObject { get; set; }
    }
}
